package com.yanyuan.snio.demo;

import com.yanyuan.snio.part.NioP11NonBlockUDP;
import org.assertj.core.util.Lists;
import org.junit.jupiter.api.Test;

import java.io.IOException;

/**
 * @author: yanyuan
 * @Date: 2021/3/29 11:17
 * @Description:
 */
public class NioP11NonBlockUDPDemo {

    NioP11NonBlockUDP nioP11NonBlockUDP = new NioP11NonBlockUDP();

    @Test
    public void send() throws IOException {
        nioP11NonBlockUDP.send(Lists.newArrayList("你好", "非阻塞IO"));
    }

    @Test
    public void receive() throws IOException {
        nioP11NonBlockUDP.receive();
    }
}
